﻿

using System;
using System.ServiceModel;
using System.Runtime.Serialization;

using WCFModel;

namespace WCFContract
{

    [ServiceContract]
    public interface IStudentService
    {
        /// <summary>
        /// 获取学生名称
        /// </summary>
        /// <param name="id">学生ID</param>
        /// <returns></returns>
        [OperationContract]
        string GetStudentName(Int32 id);

        /// <summary>
        /// 获取学生信息
        /// </summary>
        /// <param name="id">学生ID</param>
        /// <returns></returns>
        [OperationContract]
        Student GetStudent(Int32 id);
    }
}
